#include <stdio.h> // 包含 scanf 的定义
namespace SV_TAINTED_CALL_INDEX_ACCESS {
	namespace bad {
	
		const unsigned num_sizes = 100; // 定义最大大小
		int sizes[num_sizes];            // 存储大小的数组

		void setSize(int index, int size) {
			sizes[index] = size;
		}

		void getSize() {
			unsigned num, size;
			int i;
			scanf("%u %u", &num, &size);
			setSize(num, size);
		}
	}


	namespace good {

		const unsigned num_sizes = 100; // 定义最大大小
		int sizes[num_sizes];            // 存储大小的数组

		void setSize(int index, int size) {
			sizes[index] = size;
		}

		void getSize() {
			unsigned num, size;
			int i;
			scanf("%u %u", &num, &size);
			if (num < num_sizes)
			{
				setSize(num, size);
			}
		}
	}
}